//
//  LCBaseWebViewVC.h
//  LongChain
//  webview 基类
//  Created by FengZi on 2018/4/11.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCBaseVC.h"
#import <WebKit/WebKit.h>

typedef NS_ENUM(NSInteger, InteractiveType) {
    InteractiveTypeLogin,
    InteractiveTypeUserInfo,
    InteractiveTypeShare
};

typedef void(^InteractiveBlock)(id parameter);

@interface LCBaseWebViewVC : LCBaseVC

/**
 需要执行的script 语句集合
 */
@property (nonatomic, strong) NSArray *scriptMessages;

/**
 需要加载的链接
 */
@property (nonatomic, copy) NSString *urlStr;

/**
 webview 配置 如未设置 将使用默认的配置
 */
@property (nonatomic, strong) WKWebViewConfiguration *config;

/**
 控制进度条是否显示  默认为YES
 */
@property (nonatomic, assign) BOOL showProgressView;


@property (nonatomic, copy) InteractiveBlock interaction;

@property (nonatomic, strong) WKWebView *wkWebView;

#pragma mark 重新加载URL
-(void)reloadRequest;

@end
